package com.yupi.shanoj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.shanoj.model.dto.comment.CommentTree;
import com.yupi.shanoj.model.entity.Comments;

import java.util.List;

/**
* @author 23949
* @description 针对表【comments(评论表)】的数据库操作Service
* @createDate 2024-07-15 20:52:36
*/
public interface CommentsService extends IService<Comments> {

    boolean sendComment(Comments comments);

    List<CommentTree> getCommentTreeByitemid(Integer itemId,Long offset,Integer type);

    List<Comments> getRootCommentsById(Integer itemId,Long offset,Integer type);

    Long likeOrDislike(Integer mid, Integer uid);
}
